home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_1.adf / Install-SASC next >
Text File  |  1992-07-30  |  55KB  |  1,593 lines

  1. ; script to install 6.0 Compiler
  2. ; Should be run from WorkBench by double-clicking on the icon
  3. ; Requires a stack of 16000 bytes or more
  4.  
  5. (complete 0)
  6.  
  7. (set @default-dest "Work:")
  8.  
  9. (set version (/ (getversion) 65536))
  10. (set version2 36)
  11.  
  12. (set answer1
  13.         (askchoice
  14.                 (prompt "Choose where to install 6.0 Compiler")
  15.                 (choices "Hard Disk" "Floppy Disk")
  16.          (help "Selecting Hard Disk will install the 6.0 compiler on the "
  17.             "hard disk.  You will be asked what directory or partition you "
  18.             "would like to install it on.  The default is Work:.  A directory "
  19.             "called 'SC' will be placed in the directory you choose. \n\n"
  20.             "Selecting Floppy Disk will install the 6.0 compiler on "
  21.             "a set of 2 (or optionally 3) floppy disks.\n"
  22.          )
  23.                 (default 0)
  24.         )
  25. )
  26.  
  27. (if (= answer1 0)
  28.   (
  29.      ; install on hard disk
  30.      (set dest2 (askdir  (prompt "Select the location to install the SC directory")
  31.                           (default @default-dest)
  32.                           (help "Choose a destination partition or directory " 
  33.                                 "to contain the 6.0 compiler.  The install "
  34.                                 "program will create a directory called 'SC' "
  35.                                 "in the location you choose and copy the "
  36.                                 "compiler files to it."
  37.                           )
  38.                 )
  39.      )
  40.      (set dest1 (tackon dest2 "sc"))
  41.      (set @default-dest dest1)
  42.      (message "Package will be installed in " 
  43.                dest1
  44.      )
  45.      (set error (trap 4
  46.         (copyfiles (source "SASC_6.0_Disk_1:more") (dest "ram:"))
  47.      ))
  48.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  49.       
  50.      (makedir dest2 (safe) (infos))
  51.      (makedir dest1 (safe) (infos))
  52.      (makedir ("%s/env" dest1) (safe))
  53.      (makedir ("%s/lib" dest1) (safe))
  54.      (makedir ("%s/include" dest1) (safe))
  55.      (makedir "env:sc" (safe))
  56.      
  57.      
  58.      (if (>= version version2)
  59.         (makedir "envarc:sc" (safe))
  60.      )
  61.  
  62.      (set parts
  63.           (askoptions 
  64.              (prompt "Choose the items you would like installed")
  65.              (choices "Compiler"
  66.                      "Optimizers"
  67.                      "Assembler and Assembler Header Files"
  68.                      "Debugger"
  69.                      "Cross Debugger"
  70.                      "Extra Utilities"
  71.                      "Examples and Source"
  72.                      "On-Line Help System"
  73.              )
  74.              (help "You may choose to install only part of the development system.  "
  75.                    "If you do not install all parts, you will not be able to use "
  76.                    "certain features.  You can choose to install those parts later "
  77.                    "by rerunning this install program and selecting the new "
  78.                    "parts at this point.  The parts you can choose to install "
  79.                    "are:\n\n"
  80.  
  81.                    "Compiler - \nSelecting this item installs the pieces of the "
  82.                    "system that must be present to compile any file.  You should "
  83.                    "always select this item the first time you install the "
  84.                    "product.\n\n"
  85.  
  86.                    "Optimizers - \nSelecting this item installs the Global Optimizer "
  87.                    "and the Peephole Optimizer.  The optimizers are not required for "
  88.                    "compiling, but do produce significantly smaller and faster code.\n\n"
  89.  
  90.                    "Assembler and Assembler Header Files - \nSelecting this item "
  91.                    "installs the SAS/C Assembler and Assembler-language header "
  92.                    "files.  The assembler is not required for compiling pure C "
  93.                    "language code.\n\n"
  94.  
  95.                    "Debugger -\nSelecting this item installs the CPR debugger.\n\n"
  96.  
  97.                    "Cross Debugger -\nSelecting this item installs the "
  98.                    "Amiga-to-Amiga cross version of the CPR debugger.  If you "
  99.                    "have two or more Amigas and want to debug programs using the "
  100.                    "serial port or a network, select this option.\n\n"
  101.  
  102.                    "Extra Utilities -\nSelecting this item installs the helpful "
  103.                    "but nonessential utilities that come with the SAS/C Development "
  104.                    "System.  These utilities include scompact, scsetup, cover, gst, "
  105.                    "omd, dumpobj, hypergst, diff, grep, lstat, lprof, fd2pragma, "
  106.                    "oml, splat, tb and sc5.\n\n"
  107.  
  108.                    "On-Line Help System -\nSelecting this item installs the "
  109.                    "Commodore shared library 'AmigaGuide.library' in your "
  110.                    "LIBS: drawer, installs the 'AmigaGuide' hypertext "
  111.                    "browser, and installs several AmigaGuide documents that "
  112.                    "are used as online help for the various utilities.\n\n"
  113.              )
  114.           )
  115.       )
  116.                      
  117.  
  118.       (if (IN parts 0)
  119.           (set CHeaders
  120.                (askchoice 
  121.                    (prompt "Install what type of C header files")
  122.                    (choices "Normal C Header Files"
  123.                             "Compressed C Header Files"
  124.                    )
  125.                    (help "Normal C header files have comments and formatting " 
  126.                          "space that make them more human-readable, but "
  127.                          "take up extra space.  Compressed C header files "
  128.                          "take up much less space than normal files, but "
  129.                          "you cannot browse them in a text editor and "
  130.                          "read the author's comments.\n\n"
  131.                          "If you do not have much hard disk space, select "
  132.                          "compressed header files.  If you have enough space, "
  133.                          "select normal header files."
  134.                    )
  135.                )
  136.            )
  137.       )
  138.  
  139.       (if (IN parts 0)
  140.            (set libraries
  141.                 (askoptions 
  142.                      (prompt "Choose the libraries you would like installed")
  143.                      (choices "Standard Libraries"
  144.                               "Short Integer Libraries"
  145.                               "No Base Register Libraries"
  146.                               "Short Integer, No Base Register Libraries"
  147.                               "IEEE Math Libraries"
  148.                               "68881 Math Libraries"
  149.                               "Fast Floating Point Libraries"
  150.                      )
  151.                      (help  "You may choose to install only some of the "
  152.                             "link libraries.  If you do not install a "
  153.                             "particular library, you will not be able to "
  154.                             "use the set of compiler options that require "
  155.                             "that library.  You can choose to install a "
  156.                             "set of libraries later by rerunning this "
  157.                             "install program and selecting the new libraries.  "
  158.                             "The libraries available are:\n\n"
  159.  
  160.                             "Standard Libraries -\nThese are used by the compiler's "
  161.                             "default options.  You should always select this item "
  162.                             "the first time you run the install program.\n\n"
  163.  
  164.                             "Short Integer Libraries -\nThese libraries are required "
  165.                             "if you use the SHORTINT compiler option to make the "
  166.                             "length of an 'int' variable two bytes instead of four.\n\n"
  167.  
  168.                             "No Base Register Libraries -\nThese libraries are "
  169.                             "required if you use the DATA=FAR or DATA=FARONLY "
  170.                             "compiler options to access data using 32-bit "
  171.                             "references.\n\n"
  172.  
  173.                             "Short Integer, No Base Register Libraries -\nThese "
  174.                             "libraries are required if you use both the SHORTINT and "
  175.                             "DATA=FAR or DATA=FARONLY options.\n\n"
  176.  
  177.                             "IEEE Math Libraries -\nThese libraries are required if "
  178.                             "you use the MATH=IEEE compiler option.  They use "
  179.                             "the Commodore-supplied shared libararies "
  180.                             "to perform mathematical functions using IEEE-format "
  181.                             "floating point numbers.\n\n"
  182.  
  183.                             "68881 math libraries -\nThese libraries are required if "
  184.                             "you ue the MATH=68881 compiler option.  MATH=68881 tells "
  185.                             "the compiler to generate in-line code for the 68881 "
  186.                             "math coprocessor chip.  Code compiled with MATH=68881 "
  187.                             "will only run on an Amiga with a coprocessor installed.\n\n"
  188.  
  189.                             "Fast Floating Point Libraries -\nThese libraries are "
  190.                             "required if you use the MATH=FFP compiler option.  They "
  191.                             "use the Commodore-supplied shared "
  192.                             "library to perform mathematical functions using "
  193.                             "Motorola Fast Floating Point format floating point "
  194.                             "numbers.\n\n"
  195.                      )
  196.                  )
  197.            )
  198.       )         
  199.  
  200. (complete 5)
  201. ; Disk 1
  202.       (if (IN parts 0)
  203.         (
  204.           (set error (trap 4
  205.              (copyfiles
  206.                 (source "SASC_6.0_Disk_1:Compiler")
  207.                     (dest dest1)
  208.                     (all)
  209.              )
  210.           ))
  211.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  212.        
  213.           (set error (trap 4
  214.              (copyfiles
  215.               (source "SASC_6.0_Disk_1:Read.me")
  216.                     (dest dest1)
  217.              )
  218.           ))
  219.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  220.        
  221.         )
  222.       )
  223.       
  224. (complete 20)
  225. ; Disk 2
  226.      (set libdest (tackon dest1 "lib"))
  227.  
  228.      (if (IN parts 0)
  229.       (
  230.         (askdisk (dest "SASC_6.0_Disk_2")
  231.                  (prompt "Please Insert Disk 2 of the SAS/C Development System")
  232.                  (help "Insert Disk 2 in any drive. You may remove "
  233.                        "Disk 1. It will not be needed again.")
  234.         ) 
  235.            
  236.         (if (IN libraries 0)
  237.           (
  238.            ;Standard Libs
  239.            (set error (trap 4
  240.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/sc.lib") 
  241.                       (dest libdest)
  242.               )
  243.            ))
  244.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  245.         
  246.            (set error (trap 4
  247.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scm.lib") 
  248.                       (dest libdest)
  249.               )
  250.            ))
  251.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  252.           )
  253.         )
  254.         
  255.         (if (IN libraries 1)
  256.            ;Short Libs
  257.           (
  258.            (set error (trap 4
  259.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scs.lib") 
  260.                       (dest libdest)
  261.               )
  262.            ))
  263.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  264.         
  265.            (set error (trap 4
  266.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scms.lib") 
  267.                       (dest libdest)
  268.               )
  269.            ))
  270.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  271.           )
  272.         )
  273.         
  274.         (if (IN libraries 2)
  275.            ;No Base Libs
  276.           (
  277.            (set error (trap 4
  278.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scnb.lib") 
  279.                       (dest libdest)
  280.               )
  281.            ))
  282.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  283.         
  284.            (set error (trap 4
  285.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scmnb.lib") 
  286.                       (dest libdest)
  287.               )
  288.            ))
  289.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  290.           )
  291.         )
  292.         
  293.         (if (IN libraries 3)
  294.            ;Short, No Base Libs
  295.           (
  296.            (set error (trap 4
  297.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scsnb.lib") 
  298.                       (dest libdest)
  299.               )
  300.            ))
  301.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  302.         
  303.            (set error (trap 4
  304.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scmsnb.lib") 
  305.                       (dest libdest)
  306.               )
  307.            ))
  308.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  309.           )
  310.         )
  311.         
  312.         (if (IN libraries 4)
  313.            ;IEEE math Libs
  314.            (set error (trap 4
  315.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scmieee.lib") 
  316.                       (dest libdest)
  317.               )
  318.            ))
  319.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  320.         )
  321.  
  322.         (if (IN libraries 5)
  323.            ;68881 Libs
  324.            (set error (trap 4
  325.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scm881.lib") 
  326.                       (dest libdest)
  327.               )
  328.            ))
  329.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  330.         )
  331.  
  332.         (if (IN libraries 6)
  333.            ;FFP Libs
  334.            (set error (trap 4
  335.               (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scmffp.lib") 
  336.                       (dest libdest)
  337.               )
  338.            ))
  339.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  340.         )
  341.  
  342.  
  343.         (set error (trap 4
  344.            (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib") 
  345.                       (dest libdest)
  346.                       (pattern "#?.o")
  347.            )
  348.         ))
  349.         (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  350.      
  351.         (set error (trap 4
  352.            (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/amiga.lib") 
  353.                       (dest libdest)
  354.            )
  355.         ))
  356.         (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  357.       )
  358.      )
  359.         
  360. (complete 40)
  361. ; Disk 3
  362.      (if (IN parts 1)
  363.        (
  364.          (askdisk (dest "SASC_6.0_Disk_3")
  365.                   (prompt "Please Insert Disk 3 of the SAS/C Development System")
  366.                   (help "Insert Disk 3 in any drive. You may remove "
  367.                         "Disk 2. It will not be needed again")
  368.          ) 
  369.          (set error (trap 4
  370.             (copyfiles
  371.              (source "SASC_6.0_Disk_3:Optimizers")
  372.                     (dest dest1)
  373.                     (all)
  374.             )
  375.          ))
  376.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  377.        )
  378.      )
  379.  
  380.      (if (IN parts 3)
  381.        (
  382.          (askdisk (dest "SASC_6.0_Disk_3")
  383.                   (prompt "Please Insert Disk 3 of the SAS/C Development System")
  384.                   (help "Insert Disk 3 in any drive. You may remove "
  385.                         "Disk 2. It will not be needed again")
  386.          ) 
  387.          (set error (trap 4
  388.             (copyfiles
  389.              (source "SASC_6.0_Disk_3:Debugger")
  390.                     (dest dest1)
  391.                     (all)
  392.             )
  393.          ))
  394.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  395.        )
  396.      )
  397.       
  398.      (if (IN parts 4)
  399.        (
  400.          (askdisk (dest "SASC_6.0_Disk_3")
  401.                   (prompt "Please Insert Disk 3 of the SAS/C Development System")
  402.                   (help "Insert Disk 3 in any drive. You may remove "
  403.                         "Disk 2. It will not be needed again")
  404.          ) 
  405.          (set error (trap 4
  406.             (copyfiles
  407.              (source "SASC_6.0_Disk_3:Cross_Debugger")
  408.                     (dest dest1)
  409.                     (all)
  410.             )
  411.          ))
  412.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  413.        )
  414.      )
  415.  
  416.      (if (IN parts 0)
  417.        (
  418.          (askdisk (dest "SASC_6.0_Disk_3")
  419.                   (prompt "Please Insert Disk 3 of the SAS/C Development System")
  420.                   (help "Insert Disk 3 in any drive. You may remove "
  421.                         "Disk 2. It will not be needed again")
  422.          ) 
  423.          (if (= CHeaders 0)
  424.             (
  425.               (set error (trap 4
  426.                  (copyfiles
  427.                     (source "SASC_6.0_Disk_3:Compiler_Headers")
  428.                     (dest dest1)
  429.                     (all)
  430.                  )
  431.                ))
  432.                (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  433.             )
  434.             ; else
  435.             (
  436.                (set error (trap 4
  437.                   (copyfiles
  438.                    (source "SASC_6.0_Disk_3:Extra_Utilities/c/scompact")
  439.                    (dest "ram:")
  440.                   )
  441.                ))
  442.                (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  443.             
  444.                (working "Installing compacted header files.")
  445.                (run ("ram:scompact SASC_6.0_Disk_3:Compiler_Headers/Include %s/Include all" dest1))
  446.             )
  447.          )
  448.        )
  449.      )
  450.       
  451.      (if (IN parts 5)
  452.        (
  453.          (askdisk (dest "SASC_6.0_Disk_3")
  454.                   (prompt "Please Insert Disk 3 of the SAS/C Development System")
  455.                   (help "Insert Disk 3 in any drive. You may remove "
  456.                         "Disk 2. It will not be needed again")
  457.          ) 
  458.          (set error (trap 4
  459.             (copyfiles
  460.              (source "SASC_6.0_Disk_3:Extra_Utilities")
  461.                     (dest dest1)
  462.                     (all)
  463.             )
  464.          ))
  465.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  466.        )
  467.      )
  468.       
  469. (complete 60)
  470. ; Disk 4
  471.      (if (IN parts 0)
  472.        (
  473.          (askdisk (dest "SASC_6.0_Disk_4")
  474.                   (prompt "Please Insert Disk 4 of the SAS/C Development System")
  475.                   (help "Insert Disk 4 in any drive. You may remove "
  476.                         "Disk 3. It will not be needed again")
  477.          ) 
  478.          (if (= CHeaders 0)
  479.             (
  480.                (set error (trap 4
  481.                   (copyfiles
  482.                    (source "SASC_6.0_Disk_4:Compiler_Headers")
  483.                        (dest dest1)
  484.                        (all)
  485.                   )
  486.                ))
  487.                (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  488.             )
  489.             ; else
  490.             (
  491.                (working "Installing compacted header files.")
  492.                (run ("ram:scompact SASC_6.0_Disk_4:Compiler_Headers/Include %s/Include all" dest1))
  493.             )
  494.          )
  495.        )
  496.      )
  497.  
  498.      (if (IN parts 5)
  499.        (
  500.          (askdisk (dest "SASC_6.0_Disk_4")
  501.                   (prompt "Please Insert Disk 4 of the SAS/C Development System")
  502.                   (help "Insert Disk 4 in any drive. You may remove "
  503.                         "Disk 3. It will not be needed again")
  504.          ) 
  505.          (set error (trap 4
  506.             (copyfiles
  507.              (source "SASC_6.0_Disk_4:Compiler")
  508.                     (dest dest1)
  509.                     (all)
  510.             )
  511.          ))
  512.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  513.        )
  514.      )
  515.  
  516. (complete 75)
  517. ; Disk 5
  518.  
  519.      (if (IN parts 2)
  520.        (
  521.          (askdisk (dest "SASC_6.0_Disk_5")
  522.                   (prompt "Please Insert Disk 5 of the SAS/C Development System")
  523.                   (help "Insert Disk 5 in any drive. You may remove "
  524.                         "Disk 4. It will not be needed again")
  525.          ) 
  526.          (set error (trap 4
  527.             (copyfiles
  528.              (source "SASC_6.0_Disk_5:Assembler")
  529.                     (dest dest1)
  530.                     (all)
  531.             )
  532.          ))
  533.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  534.        )
  535.      )
  536.  
  537.      (if (IN parts 5)
  538.        (
  539.          (askdisk (dest "SASC_6.0_Disk_5")
  540.                   (prompt "Please Insert Disk 5 of the SAS/C Development System")
  541.                   (help "Insert Disk 5 in any drive. You may remove "
  542.                         "Disk 4. It will not be needed again")
  543.          ) 
  544.          (set error (trap 4
  545.             (copyfiles
  546.              (source "SASC_6.0_Disk_5:Extra_Utilities")
  547.                     (dest dest1)
  548.                     (all)
  549.             )
  550.          ))
  551.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  552.        )
  553.      )
  554.  
  555. (complete 85)
  556.      (if (IN parts 7)
  557.        (
  558.          (askdisk (dest "SASC_6.0_Disk_6")
  559.                   (prompt "Please Insert Disk 6 of the SAS/C Development System")
  560.                   (help "Insert Disk 6 in any drive. You may remove "
  561.                         "Disk 5. It will not be needed again")
  562.          ) 
  563.          (set error (trap 4
  564.             (copyfiles
  565.              (source "SASC_6.0_Disk_6:Online_Help")
  566.                     (dest dest1)
  567.                     (all)
  568.             )
  569.          ))
  570.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  571.       
  572.          (copylib
  573.              (source "SASC_6.0_Disk_6:amigaguide.library")
  574.                     (dest "libs:")
  575.          )
  576.        )
  577.      )
  578.  
  579.      (if (IN parts 5)
  580.        (
  581.          (askdisk (dest "SASC_6.0_Disk_6")
  582.                   (prompt "Please Insert Disk 6 of the SAS/C Development System")
  583.                   (help "Insert Disk 6 in any drive. You may remove "
  584.                         "Disk 5. It will not be needed again")
  585.          ) 
  586.          (set error (trap 4
  587.             (copyfiles
  588.              (source "SASC_6.0_Disk_6:Extra_Utilities")
  589.                     (dest dest1)
  590.                     (all)
  591.             )
  592.          ))
  593.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  594.       
  595.        )
  596.      )
  597.  
  598. (complete 90)
  599.      (if (IN parts 6)
  600.        (
  601.          (askdisk (dest "SASC_6.0_Disk_7")
  602.                   (prompt "Please Insert Disk 7 of the SAS/C Development System")
  603.                   (help "Insert Disk 7 in any drive. You may remove "
  604.                         "Disk 6. It will not be needed again")
  605.          ) 
  606.          (set error (trap 4
  607.             (copyfiles
  608.              (source "SASC_6.0_Disk_7:Source_And_Examples")
  609.                     (dest dest1)
  610.                     (all)
  611.             )
  612.          ))
  613.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  614.       
  615.        )
  616.      )
  617.  
  618.      (if (IN parts 5)
  619.        (
  620.          (askdisk (dest "SASC_6.0_Disk_7")
  621.                   (prompt "Please Insert Disk 7 of the SAS/C Development System")
  622.                   (help "Insert Disk 7 in any drive. You may remove "
  623.                         "Disk 6. It will not be needed again")
  624.          ) 
  625.          (set error (trap 4
  626.             (copyfiles
  627.              (source "SASC_6.0_Disk_7:Extra_Utilities")
  628.                     (dest dest1)
  629.                     (all)
  630.             )
  631.          ))
  632.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  633.       
  634.        )
  635.      )
  636.  
  637.      (if (IN parts 7)
  638.        (
  639.          (askdisk (dest "SASC_6.0_Disk_7")
  640.                   (prompt "Please Insert Disk 7 of the SAS/C Development System")
  641.                   (help "Insert Disk 7 in any drive. You may remove "
  642.                         "Disk 6. It will not be needed again")
  643.          ) 
  644.          (set error (trap 4
  645.             (copyfiles
  646.              (source "SASC_6.0_Disk_7:Online_Help")
  647.                     (dest dest1)
  648.                     (all)
  649.             )
  650.          ))
  651.          (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  652.       
  653.        )
  654.      )
  655.   
  656. (complete 95)
  657.      (set string1 ("assign sc: %s" dest1))
  658.      (makeassign "sc" dest1)
  659.      (makeassign "lib" "sc:lib")
  660.      (makeassign "include" "sc:include")
  661.  
  662.      (set error 1)
  663.      (until (= error 0)
  664.         (
  665.            (set error (trap 4
  666.               (startup "SAS/C"
  667.                  (prompt ("%s\n%s\n\n%s\n%s\n%s\n%s\n\n%s"
  668.                           "The following assigns have been created."
  669.                           "Do you want the them and the path statement added to your startup?"
  670.                            string1
  671.                           "assign lib: sc:lib"
  672.                           "assign include: sc:include"
  673.                           "path sc:c add"
  674.                           "NOTE: The path will not be updated until you reboot."
  675.                           )
  676.                  )
  677.                  (command 
  678.                          ("assign sc: %s\n" dest1)
  679.                          "assign lib: sc:lib\n"
  680.                          "assign include: sc:include\n"
  681.                          "path sc:c add"
  682.                  )
  683.                  (help "The SAS/C Development System requires the listed logical ASSIGN "
  684.                        "values in order to find its files.  If you request it, the "
  685.                        "installer will add the necessary assigns to your user-startup "
  686.                        "script, which is run when your machine boots.  If you decide not "
  687.                        "to allow the installer to make these changes, you will need to "
  688.                        "make them yourself."
  689.                  )
  690.               )
  691.            ))
  692.            (if (> error 0)
  693.               (if (or (= @ioerr 222) (or (= @ioerr 223) (= @ioerr 224)))
  694.                  (message "Startup file is write protected. Use protect "
  695.                          "to write enable the file, and select Proceed" )
  696.                  ;else other type of error
  697.                  (
  698.                    (message "Non-Standard startup sequence detected. You must add "
  699.                           "the following lines by hand.\n\n"
  700.                           "    assign sc: " dest1 "\n"
  701.                           "    assign lib: sc:lib\n"
  702.                           "    assign include: sc:include\n"
  703.                           "    path sc:c add"
  704.                    )
  705.                    (set error 0)
  706.                  )                
  707.               )         
  708.            )   
  709.         )
  710.      )
  711.      (complete 99)
  712.      (run ("run ram:more %s" (tackon dest1 "Read.Me")))
  713.      (delete "ram:more" (safe))
  714.   )         
  715. )
  716.  
  717. (if (= answer1 1)
  718.   (
  719.      ; install on floppy
  720.      (set @default-dest "")
  721.      (copyfiles (source "SASC_6.0_Disk_1:nl_file") (dest "ram:"))
  722.  
  723.      (set thirddisk (askbool 
  724.                    (prompt "This install procedure creates a 2 or 3 disk set of "
  725.                            "bootable disks. The 2 disk set contains\n"
  726.                            "Compiler, Debugger, Editor, Linker, SC.LIB, "
  727.                            "SCM.LIB, compressed header files, and the "
  728.                            "small version of AMIGA.LIB. \n"
  729.                            "The third disk contains the optimizers, and "
  730.                            "other utilities.\n"
  731.                            "Do you want to create the third disk? "
  732.                     )
  733.                    (help "If you want to run the Global Optimizer, the Peephole "
  734.                          "Optimizer, or utilities other than the compiler itself, "
  735.                          "you should respond YES to this prompt.  If you do use "
  736.                          "the optimizers, you may need to swap disks if you do "
  737.                          "not have three floppy drives. \n NOTE: The optimizers "
  738.                          "on the third disk are only accessable under AmigaDOS 2.0"
  739.                    )
  740.               )
  741.          )      
  742.  
  743.  
  744.      (set wbdisk "Workbench2.0")
  745.      (if (< version version2)
  746.        (
  747.         (makeassign "c" "ram:")
  748.         (set wbdisk "Workbench1.3")
  749.         (askdisk (dest wbdisk)
  750.                  (prompt "Please insert " 
  751.                           wbdisk 
  752.                  )
  753.                  (help "An official Workbench disk is needed "
  754.                        "to complete this installation. It will "
  755.                        "be used create a bootable set of disks with "
  756.                        "the SAS/C Development System." 
  757.                  )
  758.         )
  759.         (copyfiles (source ("%s:%s" wbdisk "c/run")) (dest "ram:"))
  760.          
  761.        )
  762.      )
  763.      
  764.      (askdisk (dest wbdisk)
  765.               (prompt "Please insert " 
  766.                        wbdisk 
  767.               )
  768.                  (help "An official Workbench disk is needed "
  769.                        "to complete this installation. It will "
  770.                        "be used create a bootable set of disks with "
  771.                        "the SAS/C Development System." 
  772.                  )
  773.      )
  774.      (copyfiles (source ("%s:%s" wbdisk "system/format")) (dest "ram:"))
  775.      (copyfiles (source ("%s:%s" wbdisk "c/install")) (dest "ram:"))
  776.  
  777.      (set answer5
  778.         (askchoice
  779.            (prompt "Select a drive that is to be used as the destination.")
  780.            (choices "df0:" "df1:" "df2:" "df3:")
  781.            (default 0)
  782.            (help "You need to choose which floppy drive to use for the target "
  783.                  "disks.  The disk that you insert will be formatted and all their "
  784.                  "data destroyed."
  785.            )
  786.         )
  787.      )
  788.      (if (= answer5 0) (set newdisk "df0:"))
  789.      (if (= answer5 1) (set newdisk "df1:"))
  790.      (if (= answer5 2) (set newdisk "df2:"))
  791.      (if (= answer5 3) (set newdisk "df3:"))
  792.      (message ("%s%s%s%s%s%s%s%s"
  793.                "Insert a new disk in DRIVE "
  794.                newdisk
  795.                ", wait for the disk light to go off, then click Proceed\n\n"
  796.                "For the fewest number of disk swaps, leave "
  797.                "the destination disk in drive "
  798.                newdisk
  799.                " and use the other drive(s) for the SAS/C disks "
  800.                "and Workbench disk."
  801.                )
  802.      )
  803.  
  804. (complete 5)
  805.      (working "Formatting disk in " newdisk )
  806.      (run ("ram:format <ram:nl_file drive %s name SAS_1 noicons" newdisk))
  807.  
  808.      (run ("ram:install %s" newdisk))
  809.      
  810.      
  811.      (if (= @pretend 1)
  812.        ( 
  813.           (makedir "ram:pretend_install" (safe))
  814.           (makeassign "SAS_1" "ram:pretend_install" (safe))
  815.           (makeassign "SAS_2" "ram:pretend_install" (safe))
  816.           (makeassign "SAS_3" "ram:pretend_install" (safe))
  817.        )
  818.      )
  819.  
  820. (complete 15)
  821.      (makedir "SAS_1:Libs" (safe))
  822.      (makedir "SAS_1:C" (safe))
  823.      (makedir "SAS_1:System" (safe))
  824.      (makedir "SAS_1:L" (safe))
  825.      (makedir "SAS_1:Devs" (safe))
  826.      (makedir "SAS_1:S" (safe))
  827.      (makedir "SAS_1:Fonts" (safe))
  828.      (makedir "SAS_1:sc" (safe))
  829.  
  830.      (askdisk (dest wbdisk)
  831.               (prompt "Please insert " 
  832.                        wbdisk 
  833.                       " in a drive other than "
  834.                       newdisk
  835.               )
  836.                  (help "An official Workbench disk is needed "
  837.                        "to complete this installation. It will "
  838.                        "be used create a bootable set of disks with "
  839.                        "the SAS/C Development System." 
  840.                  )
  841.      )
  842.  
  843.  
  844.      (set error (trap 4
  845.        (copyfiles (source ("%s:%s" wbdisk "System.info"))
  846.                 (dest "SAS_1:")
  847.         )
  848.      ))
  849.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  850.   
  851.      (set error (trap 4
  852.         (copyfiles (source ("%s:%s" wbdisk "Shell.info"))
  853.                 (dest "SAS_1:")
  854.         )
  855.      ))
  856.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  857.   
  858.      (set error (trap 4
  859.         (copyfiles (source ("%s:%s" wbdisk "Libs/diskfont.library"))
  860.                 (dest "SAS_1:libs")
  861.         )
  862.      ))
  863.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  864.   
  865.      (set error (trap 4
  866.         (copyfiles (source ("%s:%s" wbdisk "Libs/version.library"))
  867.                 (dest "SAS_1:libs")
  868.         )
  869.      )) 
  870.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  871.   
  872.      (set error (trap 4
  873.         (copyfiles (source ("%s:%s" wbdisk "C/Dir"))
  874.                 (dest "SAS_1:c")
  875.      )
  876.   ))
  877.   (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  878.   
  879.      (set error (trap 4
  880.         (copyfiles (source ("%s:%s" wbdisk "C/Version"))
  881.                 (dest "SAS_1:c")
  882.         )
  883.      ))
  884.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  885.   
  886.      (set error (trap 4
  887.         (copyfiles (source ("%s:%s" wbdisk "C/Delete"))
  888.                 (dest "SAS_1:c")
  889.         )
  890.      ))
  891.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  892.   
  893.      (set error (trap 4
  894.         (copyfiles (source ("%s:%s" wbdisk "C/Copy"))
  895.                 (dest "SAS_1:c")
  896.         )
  897.      ))
  898.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  899.   
  900.      (set error (trap 4
  901.         (copyfiles (source ("%s:%s" wbdisk "C/Break"))
  902.                 (dest "SAS_1:c")
  903.         )
  904.      ))
  905.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  906.   
  907.      (set error (trap 4
  908.         (copyfiles (source ("%s:%s" wbdisk "C/BindDrivers"))
  909.                 (dest "SAS_1:c")
  910.         )
  911.      ))
  912.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  913.   
  914.      (set error (trap 4
  915.         (copyfiles (source ("%s:%s" wbdisk "C/Avail"))
  916.                 (dest "SAS_1:c")
  917.         )
  918.      ))
  919.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  920.   
  921.      (set error (trap 4
  922.         (copyfiles (source ("%s:%s" wbdisk "C/Assign"))
  923.                 (dest "SAS_1:c")
  924.         )
  925.      ))
  926.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  927.   
  928.      (set error (trap 4
  929.         (copyfiles (source ("%s:%s" wbdisk "c/AddBuffers"))
  930.                 (dest "SAS_1:c")
  931.         )
  932.      ))
  933.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  934.   
  935.      (set error (trap 4
  936.         (copyfiles (source ("%s:%s" wbdisk "C/Setclock"))
  937.                 (dest "SAS_1:c")
  938.         )
  939.      ))
  940.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  941.   
  942.      (set error (trap 4
  943.         (copyfiles (source ("%s:%s" wbdisk "C/SetDate"))
  944.                 (dest "SAS_1:c")
  945.         )
  946.      ))
  947.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  948.   
  949.      (set error (trap 4
  950.         (copyfiles (source ("%s:%s" wbdisk "c/setpatch"))
  951.                 (dest "SAS_1:c")
  952.         )
  953.      ))
  954.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  955.   
  956.      (set error (trap 4
  957.         (copyfiles (source ("%s:%s" wbdisk "C/Version"))
  958.                 (dest "SAS_1:c")
  959.         )
  960.      ))
  961.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  962.   
  963.      (set error (trap 4
  964.         (copyfiles (source ("%s:%s" wbdisk "C/Rename"))
  965.                 (dest "SAS_1:c")
  966.         )
  967.      ))
  968.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  969.   
  970.      (set error (trap 4
  971.         (copyfiles (source ("%s:%s" wbdisk "C/Mount"))
  972.                 (dest "SAS_1:c")
  973.         )
  974.      ))
  975.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  976.   
  977.      (set error (trap 4
  978.         (copyfiles (source ("%s:%s" wbdisk "C/MakeDir"))
  979.                 (dest "SAS_1:c")
  980.         )
  981.      ))
  982.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  983.   
  984.      (set error (trap 4
  985.         (copyfiles (source ("%s:%s" wbdisk "C/LoadWB"))
  986.                 (dest "SAS_1:c")
  987.         )
  988.      ))
  989.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  990.   
  991.      (set error (trap 4
  992.         (copyfiles (source ("%s:%s" wbdisk "c/Execute"))
  993.                 (dest "SAS_1:c")
  994.         )
  995.      ))
  996.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  997.   
  998.      (set error (trap 4
  999.         (copyfiles (source ("%s:%s" wbdisk "Devs/MountList"))
  1000.                 (dest "SAS_1:Devs")
  1001.         )
  1002.      ))
  1003.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1004.   
  1005.      (set error (trap 4
  1006.         (copyfiles (source ("%s:%s" wbdisk "L/port-handler"))
  1007.                 (dest "SAS_1:l")
  1008.         )
  1009.      ))
  1010.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1011.   
  1012.      (set error (trap 4
  1013.         (copyfiles (source ("%s:%s" wbdisk "System/CLI"))
  1014.                 (dest "SAS_1:System")
  1015.         )
  1016.      ))
  1017.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1018.   
  1019.      
  1020. (complete 20)
  1021.      (if (>= version version2)
  1022.         (
  1023.           ; running under 2.0
  1024.  
  1025.           (makedir "SAS_1:Rexxc" (safe))
  1026.           (makedir "SAS_1:WBStartup" (safe))
  1027.           (makedir "SAS_1:Prefs" (safe))
  1028.           (makedir "SAS_1:Prefs/Env-Archive" (safe))
  1029.           
  1030.           (set error (trap 4
  1031.              (copyfiles (source ("%s:%s" wbdisk "Libs/iffparse.library"))
  1032.                      (dest "SAS_1:libs")
  1033.              )
  1034.           ))
  1035.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1036.        
  1037.           (set error (trap 4
  1038.              (copyfiles (source ("%s:%s" wbdisk "Libs/asl.library"))
  1039.                      (dest "SAS_1:libs")
  1040.              )
  1041.           ))
  1042.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1043.        
  1044.           (set error (trap 4
  1045.              (copyfiles (source ("%s:%s" wbdisk "WBStartup/Mode_Names.info"))
  1046.                      (dest "SAS_1:WBStartup")
  1047.              )
  1048.           ))
  1049.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1050.        
  1051.           (set error (trap 4
  1052.              (copyfiles (source ("%s:%s" wbdisk "C/conclip"))
  1053.                 (dest "SAS_1:c")
  1054.              )
  1055.           ))
  1056.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1057.        
  1058.           (set error (trap 4
  1059.              (copyfiles (source ("%s:%s" wbdisk "C/Wait"))
  1060.                      (dest "SAS_1:c")
  1061.              )
  1062.           ))
  1063.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1064.        
  1065.           (set error (trap 4
  1066.              (copyfiles (source ("%s:%s" wbdisk "C/IPrefs"))
  1067.                      (dest "SAS_1:c")
  1068.              )
  1069.           ))
  1070.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1071.        
  1072.           (set error (trap 4
  1073.              (copyfiles (source ("%s:%s" wbdisk "Devs/system-configuration"))
  1074.                      (dest "SAS_1:devs")
  1075.              )
  1076.           ))
  1077.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1078.        
  1079.           (set error (trap 4
  1080.              (copyfiles (source ("%s:%s" wbdisk "Devs/printer.device"))
  1081.                      (dest "SAS_1:devs")
  1082.              )
  1083.           ))
  1084.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1085.        
  1086.           (set error (trap 4
  1087.              (copyfiles (source ("%s:%s" wbdisk "L/queue-handler"))
  1088.                      (dest "SAS_1:l")
  1089.              )
  1090.           ))
  1091.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1092.        
  1093.           (set error (trap 4
  1094.              (copyfiles (source ("%s:%s" wbdisk "System/CLI.info"))
  1095.                      (dest "SAS_1:System")
  1096.              )
  1097.           ))
  1098.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1099.        
  1100.           (set error (trap 4
  1101.              (copyfiles (source ("%s:%s" wbdisk "System/bindmonitor"))
  1102.                      (dest "SAS_1:System")
  1103.              )
  1104.           ))
  1105.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1106.        
  1107.  
  1108.           (askdisk (dest "SASC_6.0_Disk_1")
  1109.               (prompt "Please insert Disk 1 of the SAS/C Development "
  1110.                       "System in a drive other than "
  1111.                        newdisk
  1112.               )
  1113.               (help "Replace the Workbench Disk with Disk 1 of the "
  1114.                     "SAS/C Development System. The Workbench Disk "
  1115.                     "will not be needed again"
  1116.               )
  1117.           )
  1118.           (set error (trap 4
  1119.              (copyfiles (source "SASC_6.0_Disk_1:s_wb2.0")
  1120.                         (dest "SAS_1:s")
  1121.                         (all)
  1122.              )
  1123.           ))
  1124.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1125.        
  1126.         )
  1127.         
  1128.         (
  1129.           ; running under 1.3 
  1130.           (set error (trap 4
  1131.              (copyfiles (source ("%s:%s" wbdisk "c/Run"))
  1132.                      (dest "SAS_1:c")
  1133.              )
  1134.           ))
  1135.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1136.        
  1137.           (set error (trap 4
  1138.              (copyfiles (source ("%s:%s" wbdisk "c/Stack"))
  1139.                      (dest "SAS_1:c")
  1140.              )
  1141.           ))
  1142.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1143.        
  1144.           (set error (trap 4
  1145.              (copyfiles (source ("%s:%s" wbdisk "c/Else"))
  1146.                      (dest "SAS_1:c")
  1147.              )
  1148.           ))
  1149.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1150.        
  1151.           (set error (trap 4
  1152.              (copyfiles (source ("%s:%s" wbdisk "c/Type"))
  1153.                      (dest "SAS_1:c")
  1154.              )
  1155.           ))
  1156.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1157.        
  1158.           (set error (trap 4
  1159.              (copyfiles (source ("%s:%s" wbdisk "c/Path"))
  1160.                      (dest "SAS_1:c")
  1161.              )
  1162.           ))
  1163.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1164.        
  1165.           (set error (trap 4
  1166.              (copyfiles (source ("%s:%s" wbdisk "c/FF"))
  1167.                      (dest "SAS_1:c")
  1168.              )
  1169.           ))
  1170.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1171.        
  1172.           (set error (trap 4
  1173.              (copyfiles (source ("%s:%s" wbdisk "c/resident"))
  1174.                      (dest "SAS_1:c")
  1175.              )
  1176.           ))
  1177.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1178.        
  1179.           (set error (trap 4
  1180.              (copyfiles (source ("%s:%s" wbdisk "c/EndCLI"))
  1181.                      (dest "SAS_1:c")
  1182.              )
  1183.           ))
  1184.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1185.        
  1186.           (set error (trap 4
  1187.              (copyfiles (source ("%s:%s" wbdisk "c/NewCLI"))
  1188.                      (dest "SAS_1:c")
  1189.              )
  1190.           ))
  1191.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1192.        
  1193.           (set error (trap 4
  1194.              (copyfiles (source ("%s:%s" wbdisk "c/newshell"))
  1195.                      (dest "SAS_1:c")
  1196.              )
  1197.           ))
  1198.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1199.        
  1200.           (set error (trap 4
  1201.              (copyfiles (source ("%s:%s" wbdisk "c/Echo"))
  1202.                      (dest "SAS_1:c")
  1203.              )
  1204.           ))
  1205.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1206.        
  1207.           (set error (trap 4
  1208.              (copyfiles (source ("%s:%s" wbdisk "c/Failat"))
  1209.                      (dest "SAS_1:c")
  1210.              )
  1211.           ))
  1212.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1213.        
  1214.           (set error (trap 4
  1215.              (copyfiles (source ("%s:%s" wbdisk "c/SetEnv"))
  1216.                      (dest "SAS_1:c")
  1217.              )
  1218.           ))
  1219.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1220.        
  1221.           (set error (trap 4
  1222.              (copyfiles (source ("%s:%s" wbdisk "c/CD"))
  1223.                      (dest "SAS_1:c")
  1224.              )
  1225.           ))
  1226.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1227.        
  1228.           (set error (trap 4
  1229.              (copyfiles (source ("%s:%s" wbdisk "c/EndIf"))
  1230.                      (dest "SAS_1:c")
  1231.              )
  1232.           ))
  1233.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1234.        
  1235.           (set error (trap 4
  1236.              (copyfiles (source ("%s:%s" wbdisk "c/If"))
  1237.                      (dest "SAS_1:c")
  1238.              )
  1239.           ))
  1240.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1241.        
  1242.           (set error (trap 4
  1243.              (copyfiles (source ("%s:%s" wbdisk "c/Protect"))
  1244.                      (dest "SAS_1:c")
  1245.              )
  1246.           ))
  1247.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1248.        
  1249.           (set error (trap 4
  1250.              (copyfiles (source ("%s:%s" wbdisk "l/Disk-Validator"))
  1251.                      (dest "SAS_1:l")
  1252.              )
  1253.           ))
  1254.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1255.        
  1256.           (set error (trap 4
  1257.              (copyfiles (source ("%s:%s" wbdisk "l/Newcon-Handler"))
  1258.                      (dest "SAS_1:l")
  1259.              )
  1260.           ))
  1261.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1262.        
  1263.           (set error (trap 4
  1264.              (copyfiles (source ("%s:%s" wbdisk "l/shell-seg"))
  1265.                      (dest "SAS_1:l")
  1266.              )
  1267.           ))
  1268.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1269.        
  1270.           (set error (trap 4
  1271.              (copyfiles (source ("%s:%s" wbdisk "l/Ram-Handler"))
  1272.                      (dest "SAS_1:l")
  1273.              )
  1274.           ))
  1275.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1276.        
  1277.           (set error (trap 4
  1278.              (copyfiles (source ("%s:%s" wbdisk "devs/ramdrive.device"))
  1279.                      (dest "SAS_1:devs")
  1280.              )
  1281.           ))
  1282.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1283.        
  1284.           (set error (trap 4
  1285.              (copyfiles (source ("%s:%s" wbdisk "devs/system-configuration"))
  1286.                      (dest "SAS_1:devs")
  1287.              )
  1288.           ))
  1289.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1290.        
  1291.           (set error (trap 4
  1292.              (copyfiles (source ("%s:%s" wbdisk "libs/icon.library"))
  1293.                      (dest "SAS_1:libs")
  1294.              )
  1295.           ))
  1296.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1297.        
  1298.           (set error (trap 4
  1299.              (copyfiles (source ("%s:%s" wbdisk "libs/info.library"))
  1300.                      (dest "SAS_1:libs")
  1301.              )
  1302.           ))
  1303.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1304.        
  1305.           (askdisk (dest "SASC_6.0_Disk_1")
  1306.               (prompt "Please insert Disk 1 of the SAS/C Development "
  1307.                       "System in a drive other than "
  1308.                        newdisk
  1309.               )
  1310.               (help "Replace the Workbench Disk with Disk 1 of the "
  1311.                     "SAS/C Development System. The Workbench Disk "
  1312.                     "will not be needed again"
  1313.               )
  1314.           )
  1315.           (set error (trap 4
  1316.              (copyfiles (source "SASC_6.0_Disk_1:s_wb1.3")
  1317.                      (dest "SAS_1:s")
  1318.                      (all)
  1319.              )
  1320.           ))
  1321.           (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1322.        
  1323.         )
  1324.      ) 
  1325.  
  1326. (complete 30)
  1327.      (askdisk (dest "SASC_6.0_Disk_1")
  1328.               (prompt "Please insert Disk 1 of the SAS/C Development "
  1329.                       "System in a drive other than "
  1330.                        newdisk
  1331.               )
  1332.               (help "Replace the Workbench Disk with Disk 1 of the "
  1333.                     "SAS/C Development System. The Workbench Disk "
  1334.                     "will not be needed again"
  1335.               )
  1336.      )
  1337.      (set error (trap 4
  1338.         (copyfiles (source "SASC_6.0_Disk_1:Compiler")
  1339.                 (dest "SAS_1:sc")
  1340.                 (all)
  1341.         )
  1342.      ))
  1343.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1344.   
  1345.  
  1346.      (askdisk (dest "SASC_6.0_Disk_3")
  1347.               (prompt "Please insert Disk 3 of the SAS/C Development "
  1348.                       "System in a drive other than "
  1349.                        newdisk
  1350.               )
  1351.               (help "Replace the Disk 1 with Disk 3 of the "
  1352.                     "SAS/C Development System. "
  1353.               )
  1354.      )
  1355.      (set error (trap 4
  1356.         (copyfiles (source "SASC_6.0_Disk_3:Debugger/libs")
  1357.                 (dest "SAS_1:sc/libs")
  1358.                 (all)
  1359.         )
  1360.      ))
  1361.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1362.   
  1363.  
  1364.      (if (= 1 thirddisk)
  1365.        (
  1366.          (if (>= version version2)
  1367.            (
  1368.               (set error (trap 4
  1369.                  (copyfiles (source "SASC_6.0_Disk_3:s_wb2.0")
  1370.                          (dest "SAS_1:s")
  1371.                          (all)
  1372.               )
  1373.            ))
  1374.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1375.            
  1376.            )
  1377.            ; else 1.3
  1378.            (
  1379.               (set error (trap 4
  1380.                  (copyfiles (source "SASC_6.0_Disk_3:s_wb1.3")
  1381.                          (dest "SAS_1:s")
  1382.                          (all)
  1383.                  )
  1384.               ))
  1385.               (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1386.            
  1387.            )
  1388.          )
  1389.        )
  1390.      )
  1391.  
  1392.      (message ("%s%s%s%s"
  1393.                "Insert a new disk in DRIVE "
  1394.                 newdisk
  1395.                 ", wait for the disk light to go off, "
  1396.                 "and click Proceed "
  1397.               )
  1398.      )
  1399.      (working "Formating disk in " newdisk )
  1400.      (run ("ram:format <ram:nl_file drive %s name SAS_2 noicons" newdisk))
  1401.  
  1402.      (makedir "SAS_2:sc" (safe))
  1403.      (makedir "SAS_2:sc/lib" (safe))
  1404.      (makedir "SAS_2:sc/Include" (safe))
  1405.  
  1406.      (askdisk (dest "SASC_6.0_Disk_2")
  1407.               (prompt "Please insert Disk 2 of the SAS/C Development "
  1408.                       "System in a drive other than "
  1409.                        newdisk
  1410.               )
  1411.               (help "Insert Disk 2 to continue installation. For best " 
  1412.                     "results, do not use the drive containing the "
  1413.                     "destination disk, "
  1414.                     newdisk
  1415.                     )
  1416.      )
  1417.      (set error (trap 4
  1418.         (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib")
  1419.                 (dest "SAS_2:sc/lib")
  1420.                 (pattern "#?.o")
  1421.         )
  1422.      ))
  1423.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1424.   
  1425.      (set error (trap 4
  1426.         (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/sc.lib")
  1427.                 (dest "SAS_2:sc/lib")
  1428.         )
  1429.      ))
  1430.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1431.   
  1432.      (set error (trap 4
  1433.         (copyfiles (source "SASC_6.0_Disk_2:Libraries/lib/scm.lib")
  1434.                 (dest "SAS_2:sc/lib")
  1435.         )
  1436.      ))
  1437.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1438.   
  1439.  
  1440.      (askdisk (dest "SASC_6.0_Disk_3")
  1441.               (prompt "Please insert Disk 3 of the SAS/C Development "
  1442.                       "System in a drive other than "
  1443.                        newdisk
  1444.               )
  1445.               (help "Insert Disk 3 to continue installation. For best " 
  1446.                     "results, do not use the drive containing the "
  1447.                     "destination disk, "
  1448.                     newdisk
  1449.                     )
  1450.      )
  1451.      (set error (trap 4
  1452.         (copyfiles (source "SASC_6.0_Disk_3:Extra_Utilities/c/scompact")
  1453.                 (dest "ram:")
  1454.         )
  1455.      ))
  1456.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1457.   
  1458.      (set error (trap 4
  1459.         (copyfiles (source "SASC_6.0_Disk_3:Libraries/lib/amiga_small.lib")
  1460.                 (dest "SAS_2:sc/lib")
  1461.                 (newname "amiga.lib")
  1462.         )
  1463.      ))
  1464.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1465.   
  1466.      (set error (trap 4
  1467.         (copyfiles (source "SASC_6.0_Disk_3:Debugger/c")
  1468.                 (dest "SAS_2:sc/c")
  1469.                 (all)
  1470.         )
  1471.      ))
  1472.      (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1473.   
  1474. (complete 40)
  1475.      (working "Installing compacted header files.")
  1476.      (run "ram:scompact SASC_6.0_Disk_3:Compiler_Headers/Include SAS_2:sc/Include all")
  1477. (complete 50)
  1478.      (askdisk (dest "SASC_6.0_Disk_4")
  1479.               (prompt "Please insert Disk 4 of the SAS/C Development "
  1480.                       "System in a drive other than "
  1481.                        newdisk
  1482.               )
  1483.               (help "Insert Disk 4 to continue installation. For best " 
  1484.                     "results, do not use the drive containing the "
  1485.                     "destination disk, "
  1486.                     newdisk
  1487.                     )
  1488.      )
  1489.      (working "Installing compacted header files.")
  1490.      (run "ram:scompact SASC_6.0_Disk_4:Compiler_Headers/Include SAS_2:sc/Include all")
  1491.  
  1492.  
  1493. (complete 70)
  1494.      (if (= 1 thirddisk)
  1495.          (
  1496.            (message ("%s%s%s%s"
  1497.                     "Insert a new disk in DRIVE "
  1498.                     newdisk
  1499.                     ", wait for the disk light to go off, "
  1500.                     "and click Proceed "
  1501.                     )
  1502.            )
  1503.            (working "Formating disk in " newdisk)
  1504.            (run ("ram:format <ram:nl_file drive %s name SAS_3 noicons" newdisk))
  1505.       
  1506.            (makedir "SAS_3:sc" (safe))
  1507.  
  1508.            (askdisk (dest "SASC_6.0_Disk_3")
  1509.               (prompt "Please insert Disk 3 of the SAS/C Development "
  1510.                       "System in a drive other than "
  1511.                        newdisk
  1512.               )
  1513.               (help "Insert Disk 3 to continue installation. For best " 
  1514.                     "results, do not use the drive containing the "
  1515.                     "destination disk, "
  1516.                     newdisk
  1517.                     )
  1518.            )
  1519.            
  1520.            (set error (trap 4
  1521.               (copyfiles (source "SASC_6.0_Disk_3:optimizers")
  1522.                       (dest "SAS_3:sc")
  1523.                       (all)
  1524.               )
  1525.            ))
  1526.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1527.         
  1528.            (set error (trap 4
  1529.               (copyfiles (source "SASC_6.0_Disk_3:Extra_Utilities")
  1530.                       (dest "SAS_3:sc")
  1531.                       (all)
  1532.               )
  1533.            ))
  1534.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1535.         
  1536. (complete 80)
  1537.            (askdisk (dest "SASC_6.0_Disk_5")
  1538.               (prompt "Please insert Disk 5 of the SAS/C Development "
  1539.                       "System in a drive other than "
  1540.                        newdisk
  1541.               )
  1542.               (help "Insert Disk 5 to continue installation. For best " 
  1543.                     "results, do not use the drive containing the "
  1544.                     "destination disk, "
  1545.                     newdisk
  1546.                     )
  1547.            )
  1548.            (set error (trap 4
  1549.               (copyfiles (source "SASC_6.0_Disk_5:Extra_Utilities")
  1550.                       (dest "SAS_3:sc")
  1551.                       (all)
  1552.               )
  1553.            ))
  1554.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1555.         
  1556.            
  1557.            (askdisk (dest "SASC_6.0_Disk_6")
  1558.               (prompt "Please insert Disk 6 of the SAS/C Development "
  1559.                       "System in a drive other than "
  1560.                        newdisk
  1561.               )
  1562.               (help "Insert Disk 6 to continue installation. For best " 
  1563.                     "results, do not use the drive containing the "
  1564.                     "destination disk, "
  1565.                     newdisk
  1566.                     )
  1567.            )
  1568.            (set error (trap 4
  1569.               (copyfiles (source "SASC_6.0_Disk_6:Extra_Utilities")
  1570.                       (dest "SAS_3:sc")
  1571.                       (all)
  1572.               )
  1573.            ))
  1574.            (if (> error 0) (message ("Dos Error %ld detected" @ioerr)))
  1575.         )
  1576.      )
  1577.      (complete 99)
  1578.      (askdisk (dest "SASC_6.0_Disk_1")
  1579.               (prompt "Please Insert Disk 1 of the SAS/C Development System")
  1580.               (help "The Installation is complete. Insert Disk 1 in "
  1581.                     "any drive and the READ.ME file will be displayed.")
  1582.      ) 
  1583.      (if (>= version version2)
  1584.         (run "run SASC_6.0_Disk_1:more SASC_6.0_Disk_1:read.me")
  1585.       ;else
  1586.         (run "ram:run SASC_6.0_Disk_1:more SASC_6.0_Disk_1:read.me")
  1587.      )
  1588.   )
  1589. )
  1590.      
  1591.  
  1592. (complete 100)
  1593.